package com.tuanzi.loan.business.entity.compensation;

import com.tuanzi.loan.core.entity.AuditEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

/**
 * @author caiwanlin
 * @create 2019-02-12 13:55
 */
@Data
@Entity
@Table(name = "loan_compensation_company_info")
@EqualsAndHashCode(callSuper = true)
public class CompensationCompanyInfo extends AuditEntity {
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @NotNull
    @Column(name = "company_type")
    private Integer companyType;

    @NotBlank
    @Column(name = "company_name")
    private String companyName;

    @NotBlank
    @Column(name = "fee_rate")
    private String feeRate;

    @NotBlank
    @Column(name = "fix_fee")
    private String fixFee;

    @NotNull
    @Column(name = "type")
    private Integer type;
}
